#include "TcpServer.h"

TcpServer::TcpServer(unsigned short port, const string &ip)
    : _acceptor(port, ip), _loop(_acceptor)
{
}
void TcpServer::start()
{
    _acceptor.ready();
    _loop.loop();
}
void TcpServer::stop(){
    _loop.unloop();
}
